package com.inga.utils.httpclient;

import org.apache.http.HttpResponse;

import java.io.IOException;

/**
 * 测试类 测试是否能够使用
 *
 * Created by abing on 2015/11/25.
 */
public class AppHttp {

    private  final  static String url = "http://my.oschina.net/u/1023341/blog/534627";

    /**
     * 处理请求
     *
     * @param args
     */
    public static void main(String[] args){
        CommonHttpRequest request = new CommonHttpRequest();
        try {
            HttpResponse response = request.getHttpRequest(url , null);

            String html = HttpDataCommon.responseToString(response);

            System.out.println(html);

        } catch (IOException e) {
            e.printStackTrace();
        }

    }
}
